﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AccountBonus.aspx.cs" Inherits="FinanceCenter_AccountBonus" %>

<%@ Register TagPrefix="ShoveWebUI" Namespace="Shove.Web.UI" Assembly="Shove.Web.UI.2 For.NET 2.0" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>山顶软件 -财务中心</title>      
    <link href="../css/css.css" rel="stylesheet" type="text/css" />
    <link href="../css/div.css" rel="stylesheet" type="text/css" />    

    <script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <table width="98%" border="0" cellpadding="0" cellspacing="1" bgcolor="#cccccc">
                <tr>
                    <td height="60" bgcolor="#f7f7f7">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td width="11%" align="center">
                                    <img src="../images/clearing/note_pic2.jpg" width="57" height="58" /></td>
                                <td class="orange14">
                                    <asp:Label ID="lbUserName" runat="server"></asp:Label>欢迎您进入管理后台！</td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
        <div>
            &nbsp;</div>
        <div id="content">
            <table width="100%" border="0" cellspacing="0" cellpadding="0" style="padding-top: 3px;">
                <tr>
                    <td align="right" class="black12">
                    
                    <input id="tbStartTime" name="tbStartTime" runat="server" onclick="WdatePicker()" />                   
                    </td>                        
                     <td align="center">至</td>
                    <td align="left" class="black12">
                    <input id="tbEndTime" name="tbEndTime" runat="server" onclick="WdatePicker()" />                   
                    </td>
                    <td width="40%" class="black12">
                        <asp:ImageButton ID="ibSelect" runat="server" ImageUrl="../images/clearing/cw_button_1.jpg"
                            OnClick="ibSelect_Click" />
                        <a href="DownloadAccountBonus.aspx?StartTime=<%=tbStartTime.Value%>&EndTime=<%=tbEndTime.Value%>" target="_blank"><img src="../images/clearing/cw_button_Download.jpg" border="0" /></a>
                        <asp:ImageButton ID="ibPrint" runat="server" ImageUrl="../images/clearing/cw_button_2.jpg"
                            OnClick="ibPrint_Click" /></td>
                </tr>
                <tr>
                    <td colspan="1">
                    </td>
                    <td colspan="3" style="height:5px;"></td>
                </tr>
            </table>
            	<asp:datagrid id="g" runat="server" CellPadding="3" BackColor="Black" BorderWidth="2px" BorderStyle="None"
					BorderColor="Silver" Font-Names="宋体" PageSize="20" AllowSorting="True" AutoGenerateColumns="False"
					Width="100%" AllowPaging="True" ForeColor="Black" OnItemDataBound="g_ItemDataBound">						
					<SelectedItemStyle Font-Bold="True" ForeColor="White"></SelectedItemStyle>
					<PagerStyle Visible="False" HorizontalAlign="Left" ForeColor="#000066" BackColor="White" Mode="NumericPages"></PagerStyle>
					<ItemStyle ForeColor="White"></ItemStyle>
					<HeaderStyle HorizontalAlign="Center" ForeColor="Black" VerticalAlign="Middle" BackColor="#CFE4F7" Font-Bold="True" BorderStyle="Dashed"></HeaderStyle>
					<Columns>
                        <asp:BoundColumn DataField="sequenceNumber" HeaderText="序号" SortExpression="sequenceNumber">
                        <ItemStyle BackColor="White" CssClass="black12" />
                            <HeaderStyle CssClass="black14" />
                        </asp:BoundColumn>
                        <asp:BoundColumn DataField="Name" HeaderText="会员ID" SortExpression="Name">
                            <ItemStyle BackColor="White" CssClass="black12" />
                            <HeaderStyle CssClass="black14" />
                        </asp:BoundColumn>
                        <asp:BoundColumn DataField="Realityname" HeaderText="会员姓名" SortExpression="Realityname" Visible="false" >
                            <ItemStyle BackColor="White" CssClass="black12" />
                            <HeaderStyle CssClass="black14" />
                        </asp:BoundColumn>
                        <asp:BoundColumn  HeaderText="会员类型" Visible="false">
                            <ItemStyle BackColor="White" CssClass="black12" />
                            <HeaderStyle CssClass="black14" />
                        </asp:BoundColumn>
                        <asp:BoundColumn DataField="Money" HeaderText="金额(元)" SortExpression="Money">
                            <ItemStyle BackColor="White" CssClass="black12" />
                            <HeaderStyle CssClass="black14" />
                        </asp:BoundColumn>
                        <asp:BoundColumn DataField="OperatorTypeName" HeaderText="奖金类型" SortExpression="OperatorTypeName">
                            <ItemStyle BackColor="White" CssClass="black12" />
                            <HeaderStyle CssClass="black14" />
                        </asp:BoundColumn>
                        <asp:BoundColumn DataField="DateTime" HeaderText="结算时间" SortExpression="DateTime">
                            <ItemStyle BackColor="White" CssClass="black12" />
                            <HeaderStyle CssClass="black14" />
                        </asp:BoundColumn>
					</Columns>
				</asp:datagrid>
				<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#CCCCCC"><%--OnPageWillChange="gPager_PageWillChange" OnSortBefore="gPager_SortBefore" --%>
                <tr>
                    <td colspan="2" bgcolor="#F7F7F7" class="black14" align="center">
                        总计：<asp:Label ID="lbUserCount" runat="server" ></asp:Label>条记录</td>
                    <td colspan="2" bgcolor="#F7F7F7" class="black14" align="center">
                        总计：消费<asp:Label ID="lbBuyCount" runat="server" ></asp:Label>元</td>
                    <td colspan="2" bgcolor="#F7F7F7" class="black14" align="center">
                        <asp:Label ID="lbCount" runat="server" Visible="false" ></asp:Label><asp:Label ID="Label1" runat="server" text="报单中心" Visible="false"></asp:Label></td>
                </tr>
                </table>
				<ShoveWebUI:ShoveGridPager ID="gPager" runat="server" Width="100%" ShowSelectColumn="False"
                        DataGrid="g" AlternatingRowColor="White" GridColor="Silver" HotColor="MistyRose"
                        Visible="False" OnPageWillChange="gPager_PageWillChange" OnSortBefore="gPager_SortBefore" />
        </div>
    </form>
</body>
</html>
